import { post } from '@/utils/request'

// 查询帮助分组树列表
export const getHelpGroupTreeList = p => post(`/service-system/b/sysHelp/v1/groupTreeList/${p.parentId}`, p)
// 查询帮助分组列表
export const getHelpGroupList = p => post(`/service-system/b/sysHelp/v1/groupList`, p)
// 查询帮助分组详情
export const viewHelpGroup = p => post(`/service-system/b/sysHelp/v1/groupView/${p.id}`, p, 'get')
// 添加帮助分组
export const addHelpGroup = p => post(`/service-system/b/sysHelp/v1/groupAdd`, p)
// 修改帮助分组
export const modifyHelpGroup = p => post(`/service-system/b/sysHelp/v1/groupModify`, p)
// 删除帮助分组
export const delHelpGroup = p => post(`/service-system/b/sysHelp/v1/groupDel/${p.id}`, p, 'get')

// 查询帮助分页列表
export const getHelpPageList = p => post(`/service-system/b/sysHelp/v1/helpPageList`, p)
// 查询帮助详情
export const viewHelp = p => post(`/service-system/b/sysHelp/v1/helpView/${p.id}`, p, 'get')
// 添加帮助
export const addHelp = p => post(`/service-system/b/sysHelp/v1/helpAdd`, p)
// 修改帮助
export const modifyHelp = p => post(`/service-system/b/sysHelp/v1/helpModify`, p)
// 删除帮助
export const delHelp = p => post(`/service-system/b/sysHelp/v1/helpDel/${p.id}`, p, 'get')
// 删除帮助
export const changeHelpStatus = p => post(`/service-system/b/sysHelp/v1/changeHelpStatus/${p.id}/${p.status}`, p, 'get')
